package com.alfred.springboot.ymlconfig.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: alfred
 * @date: 2021/7/21
 * @description:
 */
@Data
@Component
public class Person1 implements Person {

    @Value("${person1.name}")
    private String name;
    @Value("${person1.age}")
    private String age;

}
